import java.util.LinkedList;

public class SearchQueue implements SearchList{
      LinkedList<State> theQ;
        
        public State remove() {
                return theQ.poll();
        }
        
        public void add(State o) {
                theQ.add(o);
        }
        
        public SearchQueue() {
                theQ = new LinkedList<State>();
        }

        public int size() {
                
                return theQ.size();
        }
}
